import Abstract from '../views/common/abstract.vue';
const releRoles = r => require.ensure([], () => r(require('../views/releRoles.vue')), 'chunkname1')
// const releGroup = r => require.ensure([], () => r(require('../views/releGroup.vue')), 'chunkname2')
import releGroup from '../views/releGroup.vue'
import users from '../views/users.vue'

export default [{
  path: '/',
  name: '首页',
  component: (resolve) => require(['../views/index.vue'], resolve),
  children: [  
    {
      path:'/deal',
      name:'交易中心',
      meta: {
        // name: '权限管理列表项'
        icon: '&#xe62e;',
        icon_img:require("../assets/img/key.png"),
        des:'deal',

      },
      // component: (resolve) => require(['../views/index.vue'], resolve),
      component:Abstract,

      children:[
       {
          path: 'currency',
          name: '币种管理',
          meta: {
            name: '币种管理',
            icon_img:'',
            des:'currency'
          },
          // component: (resolve) => require(['../views/users.vue'], resolve),
          component: (resolve) => require(['../views/roles.vue'], resolve),
          // component:users,
       /*   children:[
            {
              path: 'relegroup',
              name: '关联分组',
              meta: {
                icon_img:''
              },
              component:releGroup
            },
              {
              path: 'releroles',
              name: '关联角色',
              meta: {
                icon_img:''
              },
              component:(resolve) => require(['../views/releRoles.vue'], resolve)
            }
          ]*/
        },
        {
          path: 'trademark',
          name: '交易市场',
          meta: {
            name: '交易市场',
            icon_img:'',
            des:'trademark'
          },
          // component: (resolve) => require(['../views/roles.vue'], resolve),
          component:users,

           /*children:[
            {
              path: 'relegroup',
              name: '关联分组',
              meta: {
                icon_img:''
              },
              component:releGroup
            },
            {
              path: 'addauthority',
              name: '添加权限',
              meta: {
                icon_img:''
              },
              component:(resolve) => require(['../views/addAuthority.vue'], resolve)
            },
           {
              path: 'releusers',
              name: '关联用户',
              meta: {
                icon_img:''
              },
              component:(resolve) => require(['../views/releusers.vue'], resolve)
            }
          ]*/
        },
        {
          path: 'paramconfig',
          name: '参数配置',
          meta: {
            name: '参数配置',
            icon_img:'',
            des:'paramconfig'

          },
          component: (resolve) => require(['../views/authority.vue'], resolve),      
        },
        {
          path: 'splitrule',
          name: '分拥规则',
          meta: {
            name: '分拥规则',
            icon_img:'',
            des:'splitrule'

          },
          component: (resolve) => require(['../views/userGroup.vue'], resolve),        
        },
      ]
    },
    {
      path:'/order',
      name:'订单管理',
      meta: {
        // name: '权限管理列表项'
        icon: '&#xe62e;',
        icon_img:require("../assets/img/key.png"),
        des:'order',

      },
      // component: (resolve) => require(['../views/index.vue'], resolve),
      // component:Abstract,
      children:[
        {
          path: 'entorder',
          name: '委托订单',
          meta: {
            name: '委托订单',
            icon_img:'',
            des:'entorder',

          },
          // component: (resolve) => require(['../views/users.vue'], resolve),
          component: (resolve) => require(['../views/roles.vue'], resolve),
        },
        {
          path: 'transactionrecord',
          name: '交易记录',
          meta: {
            name: '交易记录',
            icon_img:'',
            des:'transactionrecord',

          },
          // component: (resolve) => require(['../views/users.vue'], resolve),
          component: (resolve) => require(['../views/roles.vue'], resolve),
        }
      ]
    },

  ]
}];